﻿using Windows.Service.Share;

namespace Windows.WorkFlow.Service
{
    public interface IFlowInstanceService
    {
        /// <summary>
        /// 我的流程
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        Task<PageResponse<FlowInstanceResponse>> MineFlowInstances(PageRequest<FlowInstanceRequest> request);
        /// <summary>
        /// 流程实例保存
        /// </summary>
        /// <param name="request"></param>
        /// <returns></returns>
        /// <exception cref="ApiException"></exception>
        System.Threading.Tasks.Task Save(FlowInstanceSaveRequest request);
    }
    
}
